package com.woniuxy.student;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/16 0016-上午 10:25
 */
@SpringBootApplication
@EnableEurekaClient
@EnableWebSocket //启用webSocket
@MapperScan("com.woniuxy.student.dao")
@EnableFeignClients(basePackages = "com.woniuxy.commons.service")
@ComponentScan({
        "com.woniuxy.commons.factory",
        "com.woniuxy.student"
})
public class StudentApplication {
    public static void main(String[] args) {
        SpringApplication.run(StudentApplication.class,args);
    }
//    @Bean
//    public ServerEndpointExporter endpointExporter () {
//        return new ServerEndpointExporter();
//
//    }
}
